package com.shuimuzhen.SecondhandMotorManagementSystem.service.impl;

import com.shuimuzhen.SecondhandMotorManagementSystem.pojo.entity.SecondHandMotorcycle;
import com.shuimuzhen.SecondhandMotorManagementSystem.pojo.entity.User;
import com.shuimuzhen.SecondhandMotorManagementSystem.service.DealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DealServiceImpl implements DealService {
    @Autowired
    private DealService dealService;
    @Autowired

    /**
     * @param holder
     * @param buyer
     * @param s
     * @return
     */
    @Override
    @Transactional
    public Boolean deal(User holder, User buyer, SecondHandMotorcycle s) {
        if(/* 车主确认*/true) {
            //移除所有权
            //
            return true;
        }
        return false;
    }
}
